﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "rulereader.h"
#include <QThread>
#include "xlsxdocument.h"

#define THREAD_NUMBER (2)


QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public slots:
    void rulePathSet();
    void excelPathSet();
    void logPathSet();
    void start();


private:
    Ui::MainWindow *ui;
    // DataSheetReader* m_DR = nullptr;
    RuleReader* m_RR = nullptr;
    quint16 m_RowCount;
    QXlsx::Document* doc = nullptr;
    int m_threadNum = 0;
    int m_maxThreadNum = 0;

    // LogReader* m_LR = nullptr;
    // QList<QPair<int, QString>> m_RuleList;

};
#endif // MAINWINDOW_H
